package com.dragon.loan.repository;

import java.util.List;

import com.dragon.common.repository.mybatis.MyBatisRepository;
import com.dragon.loan.entity.DecisionGeneralRule;
@MyBatisRepository
public interface DecisionGeneralRuleMapper {
    int deleteByPrimaryKey(Long ruleId);

    int insert(DecisionGeneralRule record);

    int insertSelective(DecisionGeneralRule record);

    DecisionGeneralRule selectByPrimaryKey(Long ruleId);

    int updateByPrimaryKeySelective(DecisionGeneralRule record);

    int updateByPrimaryKey(DecisionGeneralRule record);

	Integer selectCountByLoanId(String loanId);
    
	/**
	 * 获取决策拒绝详情列表
	 * @param loanId
	 * @return
	 */
	List<DecisionGeneralRule> selectDecisionList(String loanId);
	
	/**
	 * 根据loanId  来取  拒绝的细类
	 * @param loanId
	 * @return
	 */
	String getRejNameByLoanId(String loanId);
}